package com.bestcem.xm.openplatform.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ds_openplatform_apicallcert")
public class OpenplatformApicallcert extends BaseEntity2 {
    @TableId(value = "id")
    private String id;

    /**
     * 租户id
     */
    @TableField(value = "org_id")
    private String orgId;

    /**
     * 验证私钥
     */
    @TableField(value = "secret_key")
    private String secretKey;

    /**
     * 通信加密秘钥
     */
    @TableField(value = "AES_key")
    private String aesKey;

    /**
     * 签名秘钥
     */
    @TableField(value = "signature_key")
    private String signatureKey;

    /**
     * 实例id
     */
    @TableField(value = "instance_id")
    private String instanceId;

    /**
     * 过期时间
     */
    @TableField(value = "expireDT")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime expiredt;

    /**
     * 激活状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * app_id
     */
    @TableField(value = "app_id")
    private String appId;

    /**
     * 应用名
     */
    @TableField(value = "app_name")
    private String appName;

    /**
     * 应用描述
     */
    @TableField(value = "content")
    private String content;

    /**
     * 事件订阅api路径
     */
    @TableField(value = "subscribe_api")
    private String subscribeApi;

    /**
     * 事件订阅使能
     */
    @TableField(value = "subscribe_enable")
    private Boolean subscribeEnable;
}